﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XSTDZ.ERP.Domain.Models
{
    /// <summary>
    /// 客户联系人
    /// </summary>
    public partial class ClientLink
    {
        public ClientLink Init()
        {
            this.CreateTime = DateTime.Now;
            this.Deleted = 0;
            return this;
        }
        public ClientLink UpdateInit()
        {
            this.UpdateDate = DateTime.Now;
            return this;
        }
        /// <summary>
        /// 设置删除状态（若为删除，则置为正常，否则为删除）
        /// </summary>
        /// <returns></returns>
        public ClientLink SetDeleteState()
        {
            this.Deleted = 1;// this.Deleted == 0 ? 1 : 0;
            return this;
        }
    }
}
